package dao;

import pojo.Admin;
import pojo.User;

/**
 * @author LiangHaiBo
 * @version 1.0
 * @date 2021.9.1 下午 19:31
 */
public interface UserDao {
    /**
     * 通过用户名获取用户
     * @param username
     * @return
     */
    User selectUserByName(String username);

    void addUser(User user);

    User findAllByusername(String username);


    User selectUserByCode(String code);

    void updateUser(User user);
}
